# Maintainer: Peter Budai <peterbudai@hotmail.com>

_realname=Test-Exit
pkgname=perl-${_realname}
pkgver=0.11
pkgrel=1
pkgdesc="Test whether code exits without terminating testing"
arch=('any')
url="https://metacpan.org/release/Test-Exit"
license=('PerlArtistic')
depends=('perl-Return-MultiLevel')
options=('!emptydirs')
groups=('perl-modules')
source=("https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/${_realname}-${pkgver}.tar.gz")
sha256sums=('fbda92d37e0481d18eebc81e48d025228b57184c59b2d5a6f6bdf87042e8c7b2')

build() {
  cd ${_realname}-${pkgver}
  perl Makefile.PL installdirs=vendor
  make
}

check() {
  cd ${_realname}-${pkgver}
  make test
}

package() {
  cd ${_realname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
